package com.atguigu.spzx.manager.service.impl;

import com.atguigu.spzx.common.entity.SysOperLog;
import com.atguigu.spzx.manager.mapper.SysOperLogMapper;
import com.atguigu.spzx.manager.service.AsyncOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * AsyncOperLogServiceImpl
 * </p>
 *
 * @author flyduck
 * @since 2023/11/1
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    @Async
    @Override
    public void saveSysLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
    }
}
